package com.controller.vo;

import org.springframework.beans.BeanUtils;

import com.controller.vo.base.BaseVo;
import com.dao.entity.Customer;

/**
 * 客户
 * @author geliyang
 *
 */
public class CustomerVo extends BaseVo{
	
	private String account;

	private String userName;
    
    private String openId;
    
    private String idCard;
    
    private int sex;
    
    public CustomerVo() {
	}
    
    public CustomerVo(Customer c) {
    	if(c != null)
    		BeanUtils.copyProperties(c, this);
	}
    
    public Customer toPo() {
    	Customer c = new Customer();
    	BeanUtils.copyProperties(this, c, "updatedate", "createdate");
    	return c;
    }

    public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}
	
}
